import os
import threading
import time

def listening():
    print("!@3")
    while True:
        time.sleep(1)
        if '1.txt' in os.listdir():
            print("我找到了一个妹子")


def job(msg):

    print(f"我是线程小朋友{threading.current_thread()}")
    time.sleep(1000000)
    print(f"我完成了{threading.current_thread()}")
def getInfo():
    print(threading.active_count())

if __name__ == '__main__':
    print(os.listdir())
    print(threading.active_count())
    # o = threading.Thread(target=listening,args=())



    for i in range(600
                   ):
        t1 = threading.Thread(target=job, name='t', args=(2,))
        t1.start()
        # t1.join()
    print(threading.enumerate())
    print(threading.activeCount())
    print(threading.current_thread())